<template>
  <div>
     <van-cell
     class="content-item"
     >
       <div slot="title" class="title van-multi-ellipsis--l3">{{result.title}}</div>
       <div slot="label">
         <div class="label-images-wrap" v-if="result.cover.type === 3">
           <div class="label-image">
             <van-image
             fit="cover"
             v-for="(image, index) in result.cover.images" :key="index"
             :src="image"
            />
           </div>
         </div>
         <div class="label-wrap">
          <span>{{result.aut_name}}</span>
          <span>{{result.comm_count}}评论</span>
          <span>{{result.pubdate|relativeTime}}</span>
         </div>
       </div>
       <van-image
        fit="cover"
        v-if="result.cover.type === 1"
        :src="result.cover.images[0]"
       />
     </van-cell>
  </div>
</template>

<script>
export default {
  name: "Test",
  created() {},
  data() {
    return {};
  },
  props: {
    result:{
      type:[Array,Object]
    }
  },
  methods: {},
};
</script>

<style lang="less" scoped>
/deep/.content-item{
  .title{
    font-size: 16px;
    color: #3a3a3a;
  }
  .van-cell__value{
    flex: unset;
    width: 110px;
    height: 73px;
    margin-left: 12px;
  }
  .van-cell__title{
    .label-image{
      padding: 6px 0;
      img{
        width: 110px;
        height: 73px;
        &:nth-last-child(1){
          padding-right: 4px;
        }
      }
    }
  }
  .label-wrap span{
    margin-right: 11px;
  }
}
</style>
